var app = getApp();

Page({
  data: {
    userInfo: {},
    mode: ['修改个人资料', '写日记', '记报告', '健康分析', '关于我们']
  },
  onLoad: function () {
    console.log(app.globalData.userInfo)
    var that = this;
    that.setData({
      userInfo: app.globalData.userInfo,
    })
  },
  on: function () {
    wx.reLaunch({
      url: '../index/index',
    })
  }

})